package com.cheng.example.book.advise151.chap1;

/**
 * 建议15：break万万不可忘
 */
public class Client15 {
    public static void main(String[] args) {
        System.out.println(toChineseNuberCase(0));
    }

    public static String toChineseNuberCase(int n) {
        String chineseNumber = "";
        switch (n) {
            case 0:
                chineseNumber = "零";
                break;
            case 1:
                chineseNumber = "壹";
                break;
            case 2:
                chineseNumber = "贰";
                break;
            case 3:
                chineseNumber = "叁";
            case 4:
                chineseNumber = "肆";
            case 5:
                chineseNumber = "伍";
            case 6:
                chineseNumber = "陆";
            case 7:
                chineseNumber = "柒";
            case 8:
                chineseNumber = "捌";
            case 9:
                chineseNumber = "玖";
        }
        return chineseNumber;
    }
}